﻿using Flame.Dlr;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace exe_scriptCompiler
{
    class Program
    {
        static void Main(string[] args)
        {
           /* if (args.Length == 1)
            {
                if (File.Exists(args[0]))
                {
                    IEnumerable<BaseCell> scripts = CellManager.FromText(File.ReadAllLines(args[0]));
                    Manager m = new Manager(new ScopeParameters(), new ManagerSettings());
                    m.Rebuild();
                    foreach (BaseCell s in scripts)
                    {
                        try
                        {
                            Result r =   m.Execute(new Cell(s));
                            if(r.Data != null)
                                Console.WriteLine(r.Data.ToString());
                        }
                        catch (Exception e)
                        {
                            Console.WriteLine(e.ToString());
                        }
                    }

                    Console.Read();
                }
            }*/
        }
    }
}
